package com.thinkit.bigdata.web.service.sec;

import com.thinkit.bigdata.core.feature.orm.mybatis.Page;
import com.thinkit.bigdata.web.model.sec.SysRole;
import com.thinkit.bigdata.web.model.sec.SysRoleExample;

import java.util.List;

/**
 * Created by lihongli on 2018/9/7
 */
public interface RoleService {

    List<SysRole> selectByExample(SysRoleExample example);

    List<SysRole> selectByExample(Page<SysRole> page, SysRoleExample example);

    Integer countRole(SysRoleExample example);

    Integer insert(SysRole record);

    SysRole selectRoleByPK(Long id);

    Integer update(SysRole record);

    Integer updateStatusBatch(SysRole record, SysRoleExample example);

    boolean checkRoleIsUsing(List<Long> idList);

    Integer checkRoleHavChild(List<Long> idList);

    Integer deleteRoleBatch(List<Long> idList);

    List<SysRole> selectRoleByUserId(Long userId);

    boolean RoleEquals(List<SysRole>  sysRole,SysRole role);

}
